import 'package:get/get.dart';
import 'package:xinxuan/http/http_util_service.dart';
import 'package:xinxuan/vo/articles_list_vo.dart';

class ServicePageController extends GetxController {
  
  /// 常见问题列表
  var articleArr = <ArticlesItem>[].obs;

  /// 获取常见问题列表
  getCommonProblemList() async {
    ArticlesListVo articlesListVo = await HttpUtilService.getArticlesList(categoryId: 5);
    articleArr.value = articlesListVo.data!;
    update();
  }

  @override
  void onReady() {
    getCommonProblemList();
    super.onReady();
  }

}